package com.teacher.math;

import java.io.Serializable;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.UUID;

import com.teacher.collections.CollectionsOperation;

public class CompareSort implements Serializable{
    public static void main(String[] args) {
        List<Integer> strings =CollectionsOperation.getList(1, 13, 14, 5, 6, 7, 8, 9);
        Collections.sort(strings, new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return o2-o1;
            }
        });

        UUID uuid = UUID.randomUUID();
        System.out.println(uuid);
        System.out.println(strings);
    }
}
